home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
MacFormat España 15
/
macformat_15.iso
/
Shareware Internet
/
Utilidades
/
ZipIt 1.3.5
/
Goodies
/
macszip
next >
Wrap
Text File
|
1995-12-30
|
701b
|
34 lines
#! /bin/sh
# Shell script to zip, MacBinarize, and ZMODEM download files.
# Note: This is only useful if you have a Unix shell account. It is used
# to zip files that you want to send from your Unix account to your Mac.
# Requires that mcvert be installed.
if [ $# -lt 1 ]; then
echo
echo 'Usage: macszip directory|filename...'
echo
exit 1
fi
td=tmp/`basename $0`.$USER.$$
mkdir /$td
fn=`basename $1`
zip -r /$td/$fn.zip "$@"
cd /$td
mv $fn.zip $fn.zip.data
MAC_EDITOR='ZIP '
MAC_FILETYPE='ZIP '
MAC_DLOAD_DIR=.
MAC_EXT=.bin
export MAC_EDITOR MAC_FILETYPE MAC_DLOAD_DIR MAC_EXT
mcvert -Dd $fn.zip && sz -b -l 1024 $fn.zip.bin
sendrc=$?
cd ..
rm -r /$td || sendrc=$?
exit $sendrc